package com.icare.common.service.utils;


import com.icare.common.service.db.IdWorker;

/**
 * 数据id生成工具类
 *
 * @author TianHaibo
 * @create 2018-01-11 17:00
 **/
public class IdWorkerUtil {
    private static IdWorker idWorker;

    public IdWorkerUtil() {
    }

    public static void setIdWorker(IdWorker idWorker) {
        IdWorkerUtil.idWorker = idWorker;
    }

    public static long nextId() {
        return idWorker.nextId();
    }
}
